package com.itcast.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itcast.mapper.HelloMapper;
import com.itcast.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass =  HelloService.class)
@Transactional
public class HelloServiceImpl implements HelloService{
    @Autowired
    private HelloMapper helloMapper;
    @Override
    public String say() {
        Integer count = helloMapper.getCount();
        System.out.println();
        return "Hello";
    }
}
